package com.kehutong.employee.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

import java.util.List;

@Table(value="t_employee_upload_log", multi=true, idType= IDType.TIMESTAMP)
public class EmployeeUploadLog extends Entity {

    private static final long serialVersionUID = -3815579991288561509L;

    protected EmployeeUploadLog(String id) {
        super(id);
    }

    @Column(comment="成功记录数")
    private Integer successCount;

    @Column(comment="失败记录数")
    private Integer errorCount;

    @Column(dbType = "TEXT", comment = "错误明细")
    private List<String> items;

    @UnSave
    private List<EmployeeUploadLogItem> logItems;

    public Integer getSuccessCount() {
        return successCount;
    }

    public void setSuccessCount(Integer successCount) {
        this.successCount = successCount;
    }

    public Integer getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(Integer errorCount) {
        this.errorCount = errorCount;
    }

    public List<String> getItems() {
        return items;
    }

    public void setItems(List<String> items) {
        this.items = items;
    }

    public List<EmployeeUploadLogItem> getLogItems() {
        return logItems;
    }

    public void setLogItems(List<EmployeeUploadLogItem> logItems) {
        this.logItems = logItems;
    }
}
